package com.leo.erp.dto;

import java.util.List;
import java.util.Map;

import com.leo.erp.entity.User;
import com.leo.erp.enums.UserStateEnum;


public class UserExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//数量
	private int count;
	//总页数
	private long pages;
	//总记录数
	private long total;
	//操作(增删改的时候使用)
	private User user;
	//列表(查询列表的时候使用)
	private List<User> userList;
	//列表(查询列表的时候使用)
	private List<Map<String, Object>> userPageList;
				
	//构造函数
	public UserExecution() {
					
	}
				
	//操作失败的时候使用的构造器
	public UserExecution(UserStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
				
	//操作成功的时候使用的构造器
	public UserExecution(UserStateEnum stateEnum, User user) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.user = user;
	}
				
	//操作成功的时候使用的构造器
	public UserExecution(UserStateEnum stateEnum, List<User> userList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.userList = userList;
	}
	

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	public long getPages() {
		return pages;
	}

	public void setPages(long pages) {
		this.pages = pages;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<Map<String, Object>> getUserPageList() {
		return userPageList;
	}

	public void setUserPageList(List<Map<String, Object>> userPageList) {
		this.userPageList = userPageList;
	}
	
	
}
